﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Weight.Dal;
using Weight.Model;

namespace Weight.Bll
{
    public  class BllWeightField
    {
        /// <summary>
        /// 获取称重表字段
        /// </summary>
        /// <returns></returns>
        public IEnumerable<WeightFieldEntity> GetWeightField()
        {
            return new Dal.DalWeightField().GetWeightField();
        }



        /// <summary>
        /// 批量插入
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public bool InsertBatch(List<WeightFieldEntity> list)
        {
            if (list == null || list.Count == 0) return false;
            return new DalWeightField().InsertBatch(list);
        }
    }
}
